package ru.nagakhl.whirlpool.annotations;

import java.lang.annotation.*;

/**
 * Annotation indicating that target object should be mapped to specified ColumnFamily with super type 
 * in specified Keyspace. 
 * 
 * Think of this as @Entity annotation in JPA
 * 
 * @author nagakhl
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface SuperColumnFamily {
    
    /** Name of ColumnFaimily to map this class to */
    String name();
    
    /** Name of Keyspace where ColumnFaimily this class is mapped to is located */
    String keyspace();
    
}